node {
    stage('git chekout') {
        checkout([$class                           : 'GitSCM',
                  branches                         : [[name: "master"]],
                  doGenerateSubmoduleConfigurations: false,
                  extensions                       : [],
                  gitTool                          : 'Default',
                  submoduleCfg                     : [],
                  userRemoteConfigs                : [[url: 'https://gitee.com/fastjrun/xxl-job-api.git']]
        ])
    }
    stage('UT') {
        sh 'mkdir -p xxl-job-api-base/src/main/java && mvn clean verify -pl xxl-job-api-jacoco-report -am -Put -Dbdgc.skip=false'
    }
    stage('jacoco') {
        jacoco()
    }
    stage('testng-result') {
        step([$class: 'hudson.plugins.testng.Publisher', reportFilenamePattern: 'target/surefire-reports/testng-results.xml'])
    }
}